package cn.buk.tms.entity.misc;

import jakarta.persistence.*;
import java.util.Date;

/**
 * 结算单报表模板信息(系统通用，不区分客户）
 * @author yfdai
 */
@Entity
@Table(name = "report_template_info",
        uniqueConstraints = @UniqueConstraint(
                name = "uk_report_template_name",
                columnNames = {"name"}))
public class ReportTemplateInfo {

    @Id
    private int id;

    /**
     * 模板名称
     */
    @Column(length = 50, nullable = false, updatable = false)
    private String name;

    /**
     * 模板描述
     */
    @Column(name="description", length = 500, nullable = false)
    private String desc;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", insertable = false, updatable = false)
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
